package org.xlab.baseframework.test.base;

import org.junit.runners.model.InitializationError;
import org.junit.runners.model.Statement;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * 所有测试类的父类,结合了Spring与Junit测试框架,单元测试模板
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 7, 2010
 * @since 1.0.0
 * 
 */
public class BaseTester extends SpringJUnit4ClassRunner {

	/**
	 * 基础测试类构造函数
	 * 
	 * @param clazz
	 * @throws InitializationError
	 */
	public BaseTester(Class<?> clazz) throws InitializationError {
		super(clazz);
	}

	/**
	 * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner#withAfterClasses(org.junit.runners.model.Statement)
	 */
	protected Statement withAfterClasses(Statement statement) {
		System.out.println("321321321321321312%%%%%%%%%%%%%%%%%%%%%");
		System.out.println(super.getDefaultContextLoaderClassName(getClass()));

		return super.withAfterClasses(statement);
	}

}
